package cn.tedu.submarine;

import javax.swing.*;
import java.util.Random;

//鱼雷潜艇
public class TorpedoSubmarine extends SeaObject implements EnemyScore {

    /* 构造方法*/
    public TorpedoSubmarine(){
   super(64,20);
}

    /*重写step()移动*/
    public void step() {
        x+=speed; //x+(向右)

    }
    public ImageIcon getImage(){
        return Images.torpesubm;//返回鱼雷潜艇图片
    }

    public int getScore(){
        return 40;//打掉鱼雷潜艇，玩家得40分
    }
}
